MultiPartFormDataDecode(context.InContentType, context.InContent, arrMulti);
for I := 0 to High(arrMulti) do
begin
if arrMulti[I].Name = 'No' then
begin
s_no := arrMulti[I].Content;
end;
if arrMulti[I].Name = 'file' then
begin
sFileName := StringToUTF8(arrMulti[I].FileName);
Stream.LoadFromStream(RawByteStringToStream(arrMulti[I].Content));
end;
end;
It's a code that's currently in place Key found a guy named No and put him in s_no The key finds a row called file and saves it in the stream.
As of now, we are unable to receive the values of the pictures and variables entered in the array format as shown in the image below Accepts only images and variables of the final value. Is there a value that distinguishes the first image from the second image? Or should I make an array of s_no and streams?
If you look at the screenshot you uploaded, the relationship between No and File seems to be 1:N structure.
Because the source code is only considered for one No and one File, processing multiple No and File will continue to overwrite and leave only the final state.
In order to process multiple data, you need to use a data structure such as array or list.
© 2024 OneMinuteCode. All rights reserved.