Poze

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

DECLARE

l_mime VARCHAR2 (255);


l_length NUMBER;
l_file_name VARCHAR2 (2000);
lob_loc BLOB;
BEGIN

SELECT "MIMETYPE", "POZA", "FILENAME", DBMS_LOB.getlength ("POZA")
INTO l_mime, lob_loc, l_file_name, l_length
FROM "T_POZE"
WHERE id = :imag_m and (id_hotel=:hotel OR id_statiune=:statiuni);
OWA_UTIL.mime_header (NVL (l_mime, 'application/octet'), FALSE);

HTP.p ('Content-length: ' || l_length);
HTP.p ('Content-Disposition: filename="' || l_file_name || '"');
OWA_UTIL.http_header_close;
-- Download the BLOB
WPG_DOCLOAD.download_file (lob_loc);
END;

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy