Contributions
Re: Return fixed JPEG in REST MockService
I have tried other some similar files or other type of files (PDF or binary) but any of them don't works. All of them give a "corrupt" file. In fact I tested in SoapUI 5.5 I debugged and I guess that SoapUI return always the file as a Base64 string, whether imported as Base64 is or not in the editor. I think that is a serious bug, but I don't know how report it. DGwrote: Nah, never got an answer. Will come back to it at some point. Will update if I ever work it out!1.2KViews0likes0CommentsRe: SoapUI REST MockService: Send static binary data as application/zip
That occurs almost always with any type of file, for a PDF by example, I couldn't return other thing than a Minimal Concept PDF that I type in the editor window as: %PDF-1.1 %¥±ë 1 0 obj << /Type /Catalog /Pages 2 0 R >> endobj 2 0 obj << /Type /Pages /Kids [3 0 R] /Count 1 /MediaBox [0 0 300 144] >> endobj 3 0 obj << /Type /Page /Parent 2 0 R /Resources << /Font << /F1 << /Type /Font /Subtype /Type1 /BaseFont /Times-Roman >> >> >> /Contents 4 0 R >> endobj 4 0 obj << /Length 55 >> stream BT /F1 18 Tf 0 0 Td (Estado Cta.) Tj ET endstream endobj xref 0 5 0000000000 65535 f 0000000018 00000 n 0000000077 00000 n 0000000178 00000 n 0000000457 00000 n trailer << /Root 1 0 R /Size 5 >> startxref 565 %%EOF I think that SoapUI always convert this string o any other string into a Base64 string when de mock service response, as you can notice, the Minimal PDF encoding have not special characters.1.3KViews0likes0Comments