N
NachoShaw
Guest
Hi
This is a new thread as the previous one was for GZip specifically and i feel that this is a different topic / question. see Here for GZip post.
This question surrounds decompressing embedded text. I have done a lot of searching to find a solution any pretty much everything i find leans more toward an existing zip file that needs extracting. My instance is different in that, i have an XML file that inside contains a compressed text set for a 3D solid step file. So, what are my methods? Can i compress the text directly or do i need to get the text, save it as a zip then decompress it? Currently i have tried decompressing the text directly but i just get errors. The 2 errors i get are
Im certain that the text is compressed as compared to orther compressed examples i have found, the text is in the same format. what im not certain is whether i need to contain the XML tag. I dont think i do. This is the tag
<STEPFile encoding="gzip;base64">
This is a truncated version of the file for text validation to a compressed file
H4sIAAAAAAACC7S9W69cx5Em+m7A/4FAP0gekHvyEnnDgA80uW0ToEiBpHzaTwRb5vQIsKWG
LPVM4+D89xNfZObKqF0rc9Wu8njGnDFZ9dVaeYl7fPH6w7tn1njjnzn7P377mz/dv3h1/57/
P394/eb+06v7Dy/fv/724+t3b7/++quvfvf0K/c/7Fe/6//89sU3919/9eHdN79/aV9+xf9o
nHlm3DNjP371VD7/9Vcvf/rrl//9+ecvT5+8/vH7O/6r3/7mq5fv7989+fbFe/76x/evXz75
/V+efPvx5ZPXb18+fZKfGmMY65LPjCf58PJP99+84Gd88d3Hd9+8+/j6z/Lwr//49sn/+8Q+
MU/kFZ84S/y/6v/5/776Hb5+//bVh/uX/P959eLjC/5//sU/f/ni/Uf+7ou3n7599/rtR36R
AuuviP4Ouf/j8vblLqcIMaAA==
So
Do i / can i decompress this directly as text to the step file or do i need to save the text as a zip, then extract it using a decompress method?
Thanks
Nacho is the derivative of Nigel - True fact! I am self taught in VB.Net. 50% of the time, I am right 100% of the time!
Continue reading...
This is a new thread as the previous one was for GZip specifically and i feel that this is a different topic / question. see Here for GZip post.
This question surrounds decompressing embedded text. I have done a lot of searching to find a solution any pretty much everything i find leans more toward an existing zip file that needs extracting. My instance is different in that, i have an XML file that inside contains a compressed text set for a 3D solid step file. So, what are my methods? Can i compress the text directly or do i need to get the text, save it as a zip then decompress it? Currently i have tried decompressing the text directly but i just get errors. The 2 errors i get are
- Cannot find the magic GZip number
- The input is not a valid Base-64 string
Im certain that the text is compressed as compared to orther compressed examples i have found, the text is in the same format. what im not certain is whether i need to contain the XML tag. I dont think i do. This is the tag
<STEPFile encoding="gzip;base64">
This is a truncated version of the file for text validation to a compressed file
H4sIAAAAAAACC7S9W69cx5Em+m7A/4FAP0gekHvyEnnDgA80uW0ToEiBpHzaTwRb5vQIsKWG
LPVM4+D89xNfZObKqF0rc9Wu8njGnDFZ9dVaeYl7fPH6w7tn1njjnzn7P377mz/dv3h1/57/
P394/eb+06v7Dy/fv/724+t3b7/++quvfvf0K/c/7Fe/6//89sU3919/9eHdN79/aV9+xf9o
nHlm3DNjP371VD7/9Vcvf/rrl//9+ecvT5+8/vH7O/6r3/7mq5fv7989+fbFe/76x/evXz75
/V+efPvx5ZPXb18+fZKfGmMY65LPjCf58PJP99+84Gd88d3Hd9+8+/j6z/Lwr//49sn/+8Q+
MU/kFZ84S/y/6v/5/776Hb5+//bVh/uX/P959eLjC/5//sU/f/ni/Uf+7ou3n7599/rtR36R
AuuviP4Ouf/j8vblLqcIMaAA==
So
Do i / can i decompress this directly as text to the step file or do i need to save the text as a zip, then extract it using a decompress method?
Thanks
Nacho is the derivative of Nigel - True fact! I am self taught in VB.Net. 50% of the time, I am right 100% of the time!
Continue reading...