These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Getting an exception while trying to save image in MS Access
PostPosted: Tue Dec 12, 2006 10:08 am 
Newbie

Joined: Mon Oct 16, 2006 11:50 am
Posts: 2
Location: Mumbai, India
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

NHibernate version:NHibernate-1.2.0.Beta1

Mapping documents:-
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.0" assembly="AbleSoft.TTBox.Domain" namespace="AbleSoft.TTBox.Domain">
- <class name="StudentProfile" table="StudentProfile">
- <id name="Id" column="Id" type="Int32" unsaved-value="0">
<generator class="native" />
</id>
<many-to-one name="Student" column="StudentId" class="Student" />
<property column="Image" type="BinaryBlob" name="Image" />
</class>
</hibernate-mapping>


Full stack trace of any exception that occurs:
NHibernate.Util.ADOExceptionReporter [(null)] <(null)> - System.Data.OleDb.OleDbException: Syntax error in INSERT INTO statement.
at System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(tagDBPARAMS dbParams, Object& executeResult)
at System.Data.OleDb.OleDbCommand.ExecuteCommandText(Object& executeResult)
at System.Data.OleDb.OleDbCommand.ExecuteCommand(CommandBehavior behavior, Object& executeResult)
at System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method)
at System.Data.OleDb.OleDbCommand


Name and version of the database you are using:Ms Access 2003

Hi

I am getting an exception when trying to save jpeg image using spring/nhibernate combination. The .NET type I am using is byte[]

Any clue?

Thanks,
-Nilesh


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.