Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
RossC0.Pico #1
Binary woes!
Hi,
I'm recieving a base64encoded string (png file) from a webservice.
I'm trying to write the file and output the image. But I'm having problems
converting the string back to binary - invalid characters come in:
<cffile action = "write" file = "test.png" output="#toBinary(return)#">
Outputs the lots of ? characters and fails to write a valid image.
However if I use:
<img src="data:image/png;base64,#return# ">
It outputs the image to screen (in firefox) - So I know the binary encoded
string has come across fine.
Can I set the character set for the ToBinary function ?
I've also tried to change the webservice result to be xsd:base64binary - but
cfMX throws an error also.
Any ideas or suggestions please post!
RossC0.Pico Guest
-
j2ee woes
Hi, I recently converted from CFMX7 standalone to j2ee for the practice. Everything installed fine but I'm having problems with CFCs. I can view the... -
WSE 2 woes
I have created the Hello World web service and implemented WSE 2 tokens to validate against a database. I am using VS 2003 and installed the... -
PDF woes
EPS files are intended to be placed on a page in a page-layout program, and thus contain no page orientation or page size information. If you are... -
Date Woes
I am trying to convert a date from this format: yyyymmddHHMMSS.mmmmmmsUUU to a format that ASP.NET (VB.NET) understands. The above date... -
64 bit binary and 32 bit binary have different result. Is it library bug or compiler bug?
#include <errno.h> #include <stdlib.h> #include <string.h> #include <stdio.h> #include <dirent.h> #include <assert.h> int main(int argc, char... -
RossC0.Pico #2
Re: Binary woes!
Sorted - it outputs the binary different to screen than php - but it did encode the file properly - once I allowed it permissions to access the file! doh!
RossC0.Pico Guest



Reply With Quote

