When I want to create a 'text' datatype for mySQL I've found that I need to set the
column type in the schema to VARBINARY which maps top a mediemblob. I want to make the
simplest possible insert function to insert my forms in the database so I tried to
copy the doInsert code from the 'SQL.java' file in the TDK:
public void doInsert(RunData data, Context context)
throws Exception
{
RDF entry = new RDF();
data.getParameters().setProperties(entry);
entry.save();
}
The problem is that I get an error when I try to insert any VARBINARY fields.
I searched through the archive for a while and came across a post explaining that it
would not work because the ParameterParser did not support byte[]. My question is:
does anyone have a solution that would allow me to simply pass the form in the same
way as shown above but allow for byte arrays as well? I don't want to name every field
of every form if I don't have to.
I learn best if I can see other examples, I was reading a post a while back about the
possibility of a "Bits and Pieces Repository", has anyone put anything together? Does
anyone have anything to submit if there was such a place?
I thank you in advance for any help and hope that I have been clear.
Matthew Koranda
Brand Theater AS
Maridalsvn. 87b, Bygn. 6
0461 Oslo
[EMAIL PROTECTED]
Phone (+47) 23 12 19 09
Mobile (+47) 40 00 82 20