B
B
beduin012016-05-24 14:03:48
C++ / C#
beduin01, 2016-05-24 14:03:48

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));

How to be?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
F
Fat Lorrie, 2016-05-24
@Free_ze

Use parameterized queries . At the same time, get rid of potential SQL injections ;-)

#
#algooptimize #bottize, 2016-05-24
@user004

Parameters

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question