One small note on MSMQ - especially if you are planning on embedding files & PDFs in your XML. There are some size limits to the Messages that you can place in the Queue. It depends on how you're encoding the data (Unicode characters take up double the space) but I think there's a 4 or 8mb limit.
You should check the documentation of MSMQ in MSDN. I have yet to ever hit this limit when simply sending transactional data between systems through MSMQ, but if you're going to be PDF'ing reports to send...they can get big quickly (depending on how many pages in the report & how complicated the data).
Have you tried the code sample with just plain text to make sure that it lays it down correctly in the XML file?
Have you checked that your GetPictureAsBase64 actually returns a useable text string? Maybe just printing the first few characters to a confirm prompt?
One other thing to check with some of these string/streams/file IO operations is to move the pointer back to the beginning of the data (I think thats more for File IO & in .Net...but maybe something to check)
Comments
Freelance Dynamics AX
Blog : http://axnmaia.wordpress.com/
How do I convert to base64?
How do I include the base64 data in the xmldocument?
As a note: I should send this data via MSMQ to a web server.
Br,
Jonas
Convert Base64 to BigText and export it to XML.
Freelance Dynamics AX
Blog : http://axnmaia.wordpress.com/
You should check the documentation of MSMQ in MSDN. I have yet to ever hit this limit when simply sending transactional data between systems through MSMQ, but if you're going to be PDF'ing reports to send...they can get big quickly (depending on how many pages in the report & how complicated the data).
Epimatic Corp.
http://www.epimatic.com
I tried the following code:
Xmlfile.xml contains a VALUE element, but it is empty.
What am I doing wrong?
Epimatic Corp.
http://www.epimatic.com
I think the problem has to do with Picture.GetPictureAsBase64...
Have you checked that your GetPictureAsBase64 actually returns a useable text string? Maybe just printing the first few characters to a confirm prompt?
One other thing to check with some of these string/streams/file IO operations is to move the pointer back to the beginning of the data (I think thats more for File IO & in .Net...but maybe something to check)
Epimatic Corp.
http://www.epimatic.com
Freelance Dynamics AX
Blog : http://axnmaia.wordpress.com/
Error during image processing:Parameter is not valid.
Are you sure GetPictureAsBase64 can handle all types of files, not just images?