sorry....I#m wrong...
The Problem seems to be in the parser.
Parsing the HL7 Textfile getting the "\" lost...
Coee:
Parser p = context.getPipeParser();
Message msg = iter.next();
try {
log.info(p.encode(msg));
} catch (HL7Exception e2) {
// TODO Auto-generated catch block
e2.printStackTrace();
}
ZPD|1|PDF|14627^20675^begin 644 pdf1.pdfx0Dx0A\M)5!$1BTQ+C,-"B7BX\E_3#0H-"C$
Still needing help...
FP
On Thursday, January 16, 2014 10:02 AM, g3949 <g3...@yahoo.com> wrote:
Hi,
in fact...thats the situation.
In my system, I get UUEncoded and plain.PDF documents within the zpd-3.3
segment.
Now I have still the problem replacing the \x0D\\x0A\ because while catching
the zpd-3.3 segment useing the terser, the "\" getting lost...
Reading direct from file results ->> String WITH "\"
2014-01-16 09:51:17 [INFO ] (Hl7FromFile):39 - begin 644
pdf1.pdf\x0D\\x0A\M)5!$1BTQ+C,-"B7BX\E\_
getting zpd-3.3 from terser and save the segment in String variable called zpd:
--> String WITHOUT "\"
2014-01-16 09:56:46 [INFO ] (Hl7FromFile):84 - useing terser: begin 644
pdf1.pdfx0Dx0A\M)5!$1BTQ+C,-"B7BX
Code:
String zpd = null;
Terser t = new Terser(msg);
try {
zpd = t.get("/.ZPD-3-3");
log.info("useing terser: "+zpd);
} catch (HL7Exception e)
{
// TODO Auto-generated catch block
e.printStackTrace();
}
Why does the terser cuts out the backslahes and which workarounds are possible.
Thanks a lot!
FP
On Monday, January 13, 2014 4:33 PM, James Agnew <ja...@jamesagnew.ca> wrote:
Hi GGK,
I've never seen anyone use UUEncoding inside an HL7 message (Base64 is the way
I've generally seen people solve this problem) but it should be possible.
Your problem is definitely that the first line of a UUEncoded string needs to
be in the form
begin <mode> <filename><newline>
You have all of that in your string except the newline. That may be what the
string "x0Dx" is representing.. You would need to convert that to a newline,
but also be careful since that string could also appear in the UUEncoded text.
James
On Mon, Jan 13, 2014 at 3:14 AM, g3949 <g3...@yahoo.com> wrote:
Now I have the Problem, do decode a ZPD-3.3 Segement which is UUDecoded.
>
>
>Example:
>ZPD|1|PDF|14627^20675^begin 644
>pdf1.pdfx0Dx0A\M)5!$1BTQ+C,-"B7BX\E_3#0H-"C.... end
>
>
>Decode the segement, I alway get the Errof:
>
>
>sun.misc.CEFormatException: UUDecoder: No begin line.
>
>
>
>
>Does anybody hab som Ideas?
>
>
>GGK
>
>------------------------------------------------------------------------------
>CenturyLink Cloud: The Leader in Enterprise Cloud Services.
>Learn Why More Businesses Are Choosing CenturyLink Cloud For
>Critical Workloads, Development Environments & Everything In Between.
>Get a Quote or Start a Free Trial Today.
>http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
>_______________________________________________
>Hl7api-devel mailing list
>Hl7api-devel@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/hl7api-devel
>
>
------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Hl7api-devel mailing list
Hl7api-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hl7api-devel
------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Hl7api-devel mailing list
Hl7api-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hl7api-devel