Hi All,
I have a form and I'm using a PDF417 barcode to store all XML data.
The form is big and I need to compress data.
That is the part I already did... What I need now is how to uncompress
the data in workbench after I use Decode operation from Barcoded Forms
and save the XML.
After decode I got binary data...
How can I uncompress a compressed PDF417?...
thanks to all
You dont have to do anything different to decompress.
In workbench, what is your output variable on the Barcode.Decode step?
Is it defined as xml?
Did you print+scan your input file? The Barcode.Decode can't read the barcode from a interactive form. It must be flattened, no xml hierarchy.
What does the adobe.log say when you run it?
Hi
You are correct, it decompress with no problem---
But I have another issue, if I use an external program I got an XML with
binary data inside wich is the pdf417 content.
How can I uncompress it using C# without using any LC service?...
2012/1/19 g5spark <forums@adobe.com>
**
Re: Decode Compressed 2d Barcode PDF417 created by g5spark<http://forums.adobe.com/people/g5spark>in
LiveCycle Barcoded Forms ES - View the full discussion<http://forums.adobe.com/message/4151954#4151954>
binary data passed in a xml is encoded in base64 but i dont think thats your problem. If it is, then you need to convert it back to binary.
I dont know c#, but i did find this..
Syste.Convert.ToBase64String(toEncodeAsBtytes)
System.Convert.FromBase64String(encodedData)
I think your problem is that you dont know how the data was compressed in the barcode. In otherwords, if you created the pdf form in designer and checked the compress data parameter then the LC Barcode.Decode will be able to decompress it. If some other program compressed it, LC Barcode.Decode isn't going to know what compression algorithm was used to compress it, so it wont be able to decompress it.
Exactly! The problem now is to decode outside LC using C#. I don't know if
the content of the compressed barcode is in base64 or not, maybe is just
zipped.
I'll try to find out...
2012/1/19 g5spark <forums@adobe.com>
**
Re: Decode Compressed 2d Barcode PDF417 created by g5spark<http://forums.adobe.com/people/g5spark>in
LiveCycle Barcoded Forms ES - View the full discussion<http://forums.adobe.com/message/4152319#4152319>
Take a look at this website
http://www.motobit.com/util/base64-decoder-encoder.asp
Is the content of your binary in characters alphanumeric?
/9j/4AAQSkZJRgABAQAAAQABAAD//gA8Q1JFQVRPUjogZ2QtanBlZyB2MS4wICh1c2luZy BJSkcg
SlBFRyB2NjIpLCBxdWFsaXR5ID0gMTAwCv/bAEMAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQ EBAQEB
AQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/bAEMBAQEBAQEBAQEBAQ EBAQEB
OR is it a bunch of letters, and symbols?
ÿØÿà JFIF ÿþ <CREATOR: gd-jpeg v1.0 (using IJG JPEG v62), quality = 100
ÿÛ C ÿÛ C ÿÀ X " ÿÄ
ÿÄ µ } !1A Qa "q 2‘¡ #B±Á RÑð$3br‚
%&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyzƒ„…†‡ˆ‰Š’“”•–—˜™š¢£¤¥¦§¨ ©ª²³´µ¶·¸¹ºÂÃÄÅÆÇÈÉÊÒÓÔÕÖרÙÚáâãäåæçèéêñòóôõö÷øùúÿÄ
The 1st one is base64. The 2nd is binary.
Thanks Lee for your help,
I've attached 1 xml file, there is one field that has a property called
value that has the compressed "data"... I have to convert that data into
the original xml data...
The original uncompressed data I have to obtain from the compressed data is
the following:
Again, thanks for any tips you can give me...
Pablo
North America
Europe, Middle East and Africa
Asia Pacific