Re: inserting blob

From: Jason Dwyer (Jason.Dwye..edata.com.au)
Date: Tue Sep 21 2004 - 04:59:21 EDT

  • Next message: Joćo Paulo Vasconcellos: "Cayenne x Hibernate x Any other ORM FW"

    hi kalpesh,

    i'd reckon your null pointer is more likely higher up.

    try breaking it down and inspecting the contents of the objects at
    runtime with a couple of breakpoints and a debugger. something like
    this:

    FormFile ff = fdb.getNewFile();
    byte[] b = ff.getFileData();

    my suspicion is that the form file is null, so calling getFileData() on
    it raises your null pointer

    regards,

    j.dwyer
    redata software systems

    On Tue, 2004-09-21 at 05:06, kalpesh modi wrote:
    > Hi,
    > I am trying to insert a blob. I am getting
    > NullPointerException. Is there any special care to be
    > taken while inserting a blob?
    >
    > Thanks for any help.
    >
    >
    > =====
    > Regards,
    > -Kalpesh
    > (703)506-8229 X-3308 (Work)
    > (203)676-9385 (Mobile)
    >
    >
    >
    > __________________________________
    > Do you Yahoo!?
    > New and Improved Yahoo! Mail - Send 10MB messages!
    > http://promotions.yahoo.com/new_mail



    This archive was generated by hypermail 2.0.0 : Tue Sep 21 2004 - 04:59:27 EDT