powered by simpleCommunicator - 2.0.59     © 2025 Programmizd 02
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Форумы / Oracle Forms [игнор отключен] [закрыт для гостей] / Open Image
2 сообщений из 2, страница 1 из 1
Open Image
    #36628468
SMSNET
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Dobroye vrema sutok


Est papka na diske
Vnutri papki est fotki
Nujna zdelat tak kogda perexod po polu zagrujalsa image svazaniy s etim userom
Toyest

Pole:Ima, Pola:Familiya
Est pola Foto
Tak vot v pole soxranayetsa url na fotku
Nujna zdelat tak bralsa etot url gruzilos fotka na Image
V baze xranitsa tolka url a ne sama fotka.

kak zdelat s polem Foto

Ocen nujna pomagite!
...
Рейтинг: 0 / 0
Open Image
    #36652683
spb_kostya
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
а READ_IMAGE_FILE в триггере на вход в строку или элемент не поможет в таком случае?

пример из доки как раз подходит на мой взгляд:

/* Read an image from the filesystem into an image item on the

** form. In this example, the scanned picture identification
** for each employee is NOT saved to the database, but is
** stored on the filesystem. An employee's photo is a TIFF
** image stored in a file named <Userid>.TIF Each employee's
** Userid is unique.
** Trigger: Post-Query
*/
DECLARE
tiff_image_dir VARCHAR2(80) := '/usr/staff/photos/';
photo_filename VARCHAR2(80);
BEGIN
/*
** Set the message level high so we can gracefully handle
** an error reading the file if it occurs
*/
:System.Message_Level := '25';
/*
** After fetching an employee record, take the employee's
** Userid and concatenate the '.TIF' extension to derive
** the filename from which to load the TIFF image. The EMP
** record has a non-database image item named 'EMP_PHOTO'
** into which we read the image.
*/
photo_filename := tiff_image_dir||LOWER(:emp.userid)||'.tif';

/*
** For example 'photo_filename' might look like:
**
** /usr/staff/photos/jgetty.tif
** ------
**
** Now, read in the appropriate image.
*/

READ_IMAGE_FILE(photo_filename, 'TIFF', 'emp.emp_photo');
IF NOT FORM_SUCCESS THEN
MESSAGE('This employee does not have a photo on file.');
END IF;
:SYSTEM.MESSAGE_LEVEL := '0';
END;
...
Рейтинг: 0 / 0
2 сообщений из 2, страница 1 из 1
Форумы / Oracle Forms [игнор отключен] [закрыт для гостей] / Open Image
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]