Binary Response Viewer - amitsri/rostyman-releases GitHub Wiki
Binary Response Viewer
Rostyman automatically detects binary responses and renders them natively instead of showing raw bytes.
Supported Types
| Content Type | What You See |
|---|---|
| image/png, image/jpeg, image/gif, image/webp | Image with zoom controls |
| image/svg+xml | SVG preview + source code |
| video/mp4, video/webm | Native video player (play/pause/seek/volume) |
| audio/mpeg, audio/wav, audio/ogg | Audio player |
| application/pdf | Embedded PDF viewer |
| text/csv | Interactive table with row/column counts |
| Any other binary | File card (type, size) + Save to Disk button |
How It Works
When the response Content-Type is a known binary or media type, the response body area switches from the text editor to the appropriate viewer automatically — no configuration needed.
Images
- Displayed at full width, max 100% of container
- Zoom In / Zoom Out / Reset Zoom buttons in the toolbar
- Images larger than the display area are scrollable
- SVG files are rendered as images; click View Source to see the raw XML
Video
- Uses the browser's native video element
- Supports play, pause, seek, volume, and fullscreen
- Shows video dimensions and duration in the toolbar
Audio
- Play, pause, seek bar, and volume control
- File size and duration shown in the header
- Rendered using the browser's built-in PDF viewer
- Download button to save the PDF locally
CSV
- Parsed into a scrollable interactive table
- Row and column count shown in the header
- First row is treated as the column header
Saving Binary Responses
Click Download in the response toolbar to save any binary response to disk. The filename is inferred from the Content-Disposition header or the request URL, with the correct file extension applied automatically.