Answer the question
In order to leave comments, you need to log in
Is it possible to use a bitmap in StringBuilder?
The situation is this. There is a StringBuilder. One of the fields of which must be an array of bytes (binary blob). I don't know how to convey.
Interested in the transmission of the shape field, which is a binary blob.
var InsertQuery = new StringBuilder(String.Format("INSERT INTO REQUESTS VALUES({0},'{1}','{2}',{3},{4},{5},{6},{7},{8},{9},{10},{11},'{12}')", ud.Id, ud.TimeBeg, ud.TimeEnd, ud.Freq, ud.ProdTypeId, ud.Priority, ud.CustomerId, ud.SolAngleMin, ud.SolAngleMax, ud.Shape, ud.FlagReady, ud.PostId, ud.Guid));
Answer the question
In order to leave comments, you need to log in
Use parameterized queries . At the same time, get rid of potential SQL injections ;-)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question