Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [smila-dev] Blackboard inconsistency!?

   Thank you Andreas,

the link helped for having the bytes of a workbook extracted, as expected.
Now I can entirely use the Blackboard for inter-process persistence, without
relying on the file system anymore.

Kind regards,
	Bogdan.

-----Original Message-----
From: smila-dev-bounces@xxxxxxxxxxx [mailto:smila-dev-bounces@xxxxxxxxxxx]
On Behalf Of Andreas.Weber@xxxxxxxxxxxxx
Sent: Mittwoch, 6. Oktober 2010 18:02
To: smila-dev@xxxxxxxxxxx
Subject: Re: [smila-dev] Blackboard inconsistency!?

Hi Bogdan,

it seems that HSSFWorkbook.getBytes() doesn't work as expected:
http://stackoverflow.com/questions/2141180/excel-crashes-when-opening-an-exc
el-sheet-generated-by-hssfworkbook-that-was-atta

Maybe this helps.

Best regards,
 Andreas


-----Ursprüngliche Nachricht-----
Von: smila-dev-bounces@xxxxxxxxxxx [mailto:smila-dev-bounces@xxxxxxxxxxx] Im
Auftrag von Bogdan Sacaleanu
Gesendet: Mittwoch, 6. Oktober 2010 17:30
An: 'Smila project developer mailing list'
Betreff: [smila-dev] Blackboard inconsistency!?


	Dear all,

I am having some problems using the blackboard for saving attachments.
Namely, I am trying to save and Excel file and having it read back, but
there seem to be some inconsistencies with the stream:

" java.io.IOException: Invalid header signature; read 0x0005060000100809,
expected 0xE11AB1A1E011CFD0"

The code looks like this:

...
blackboard.setAttachment(message.getQuery(), "workbook", wb.getBytes());
HSSFWorkbook wb_test = new HSSFWorkbook(new
ByteArrayInputStream(blackboard.getAttachment(message.getQuery(),
"workbook")));
...

Any idea what goes wrong at this point!?

Kind regards,
   Bogdan Sacaleanu.

#######################################################################

Bogdan Eugen Sacaleanu, Researcher & Software Engineer

LT-Lab DFKI

Stuhlsatzenhausweg 3

66123 Saarbruecken, Germany

bogdan@xxxxxxx Phone: +49 681 302 5261

http://www.dfki.de/~bogdan Fax : +49 681 302 5338

#######################################################################

Deutsches Forschungszentrum fuer Kuenstliche Intelligenz GmbH Trippstadter
Strasse 122,

D-67663 Kaiserslautern, Germany

Geschaeftsfuehrung:

Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster (Vorsitzender) Dr. Walter´Olthoff

Vorsitzender des Aufsichtsrats:

Prof. Dr. h.c. Hans A. Aukes

Amtsgericht Kaiserslautern, HRB 2313

#######################################################################

 


_______________________________________________
smila-dev mailing list
smila-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/smila-dev
_______________________________________________
smila-dev mailing list
smila-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/smila-dev



Back to the top