283: l_boundary_string_start := INSTR(L_OUTPUT_STR, 'boundary=', 1 , 1);
284: if l_boundary_string_start <> 0 then
285: l_boundary_string_start := l_boundary_string_start + 9;
286: -- l_boundary_string_end := INSTR(L_OUTPUT_STR, '--', l_boundary_string_start,1);
287: l_boundary_string_end := INSTR(L_OUTPUT_STR, FND_GLOBAL.LOCAL_CHR(13), l_boundary_string_start,1);
288: l_boundary_string := SUBSTR(L_OUTPUT_STR,
289: l_boundary_string_start ,
290: l_boundary_string_end - l_boundary_string_start);
291: else
313:
314: IF(L_Locate_boundary_End > L_Locate_Begin) THEN
315:
316: -- Get Content-length
317: L_Locate_Str_Len_End := INSTR(L_OUTPUT_STR, FND_GLOBAL.LOCAL_CHR(13), L_Locate_Str_Len, 1);
318: L_Content_Str_Len := TO_NUMBER(SUBSTR(L_OUTPUT_STR,(L_Locate_Str_Len+16),L_Locate_Str_Len_End - L_Locate_Str_Len - 16));
319:
320: -- DBMS_OUTPUT.PUT_LINE('CONTENT STR LENGTH IS ***********'||to_char(L_Content_Str_Len));
321: L_Content_Type := SUBSTR(L_OUTPUT_STR,(L_Locate_Content + LENGTH('Content-type: application/')),(L_Locate_Str_Len - (L_Locate_Content + LENGTH('Content-type: application/'))));