All Ideas

Idea Details

Post an Idea
60  Points
Open
Idea has been posted. Give it an upvote or downvote.

Allow VisualForce pages to output binary data

Visualforce & Aura

I would like to write a visual force page that dynamically generates a QR code and serves it up as an image to the browser based on parameters in the URL. This is not currently possible due to the way VF encodes data.

Examples of people asking for this:

"Visualforce emits text, not binary data. As such, the output result ends up running through a UTF-8 parser. UTF-8 disallows certain combinations of bits, such as 0xFF 0xFF. Basically, when 0x80 is set in a byte, the remainder of the 0x7F bits tell the UTF-8 stream how many more bytes to read, and each byte after must start with 0x80 with 0x40 bit set to zero, or the entire multibyte entity is also invalid."
http://salesforce.stackexchange.com/questions/49067/visualforce-page-to-render-attachment-body

"I can't convert blob into binary strings the only encoding for binary data in salesforce is base64"
https://developer.salesforce.com/forums/ForumsMain?id=906F00000008nPTIAY

Merge Idea · Flag

  • Upvotes
  • Downvotes

Ideas

Apps

from AppExchange

Questions

Help us to keep IdeaExchange clean by pointing out overlapping ideas. We'll investigate your suggestion and merge the ideas if it makes sense.



 

 

Thanks for your merge suggestion. We will review it shortly and merge the ideas if applicable.

Salesforce takes abuse situations very seriously. Examples of abuse include but are not limited to posting of offensive language or fraudulent statements. To help us process your request as quickly as possible, please fill out the form below describing the situation. For privacy and security reasons, the final outcome of an abuse case may not be revealed to the person who reported it.


 

Thank you for your feedback. We take abuse seriously and will investigate this issue and take appropriate action.