1
00:00:00,750 --> 00:00:06,300
Hello, everyone, in the last video, I have shown you how you can convert a picture to the binary

2
00:00:06,300 --> 00:00:08,890
type, then put it in the database.

3
00:00:09,180 --> 00:00:15,690
Now I will show you how you can take it from the database and convert it to GBG or BMG or whatever you

4
00:00:15,690 --> 00:00:15,990
want.

5
00:00:16,290 --> 00:00:19,010
Then you can save it in your desktop, etc..

6
00:00:19,500 --> 00:00:24,900
So now what we do is the function execute as always.

7
00:00:25,220 --> 00:00:35,430
You know, we may select, then select, then we will select everything for everything, which means

8
00:00:35,430 --> 00:00:40,680
that all what we have, all the table and all the rules that we have, which is oit, as I told you

9
00:00:40,680 --> 00:00:48,650
before, everything from the table, which is and and this could be a name page name for two or three.

10
00:00:49,080 --> 00:00:53,120
So after that we have selected all what we have in our database.

11
00:00:53,430 --> 00:00:57,030
Now we will fetch it in a picture in the variable.

12
00:00:57,030 --> 00:00:59,820
We will call it, for example, items.

13
00:01:00,710 --> 00:01:12,690
Now we would make sure that fetch or know this variable item now has everything that we have in the

14
00:01:12,690 --> 00:01:14,750
in the in the database.

15
00:01:14,770 --> 00:01:15,610
We see it here.

16
00:01:15,610 --> 00:01:18,220
And what we have this is the photo.

17
00:01:18,900 --> 00:01:21,150
OK, no, this is our table.

18
00:01:21,180 --> 00:01:25,200
We have this that we have the name, which is the text.

19
00:01:25,500 --> 00:01:27,330
Then we have this one.

20
00:01:27,360 --> 00:01:28,560
I want to see it like this.

21
00:01:28,830 --> 00:01:30,540
Here we have the name, which is text.

22
00:01:30,540 --> 00:01:31,440
We have the picture.

23
00:01:31,560 --> 00:01:36,120
We can see it here as binary as you can see, this is the binary of our picture.

24
00:01:36,480 --> 00:01:39,450
Or we have here the name, which is the text.

25
00:01:40,110 --> 00:01:41,840
This one we have in this abase.

26
00:01:41,850 --> 00:01:42,710
We have this table.

27
00:01:42,810 --> 00:01:46,190
This allows this one of two or three exito.

28
00:01:46,560 --> 00:01:56,160
So know if we will do here, for example, item items zero eight zero means that we are talking about

29
00:01:56,190 --> 00:01:56,850
this line.

30
00:01:57,360 --> 00:01:58,890
I mean, and this picture.

31
00:01:59,070 --> 00:02:06,330
And if we would put here one, we will talk about this this row, etc. So if we want this picture,

32
00:02:06,450 --> 00:02:10,740
for example, so we will take the first line and the first column.

33
00:02:10,740 --> 00:02:17,700
So we will have item zero then sorry, the first line and second column, because the first column is

34
00:02:17,700 --> 00:02:19,490
for the name and second of all, the picture.

35
00:02:19,710 --> 00:02:26,640
So we have the first to the first row, which is zero, then the first second column, which is one.

36
00:02:26,860 --> 00:02:29,760
So this one will have the role of the picture.

37
00:02:29,760 --> 00:02:35,310
We have this if we will put this in a variable, we will put it for example, we give the name, picture

38
00:02:36,630 --> 00:02:38,400
or photo identifier for two.

39
00:02:38,820 --> 00:02:45,930
I will give it the name for two if one, this very one now has the picture that we had before.

40
00:02:45,930 --> 00:02:49,320
But in the binary type, no, we want to convert it.

41
00:02:49,320 --> 00:02:52,920
We will do the same thing that we had that we did before.

42
00:02:52,920 --> 00:02:55,890
Like this one, we would make just one change.

43
00:02:56,310 --> 00:03:00,930
So we will watch it with open so open.

44
00:03:01,170 --> 00:03:03,510
And here we have the first parameter before.

45
00:03:04,740 --> 00:03:10,250
When we convert it into first time here we put the name or the path of the picture.

46
00:03:10,560 --> 00:03:15,520
Now we will write here the button or the name, if we will put just the name.

47
00:03:15,630 --> 00:03:19,800
So we will save the picture insert in the same folder of our project.

48
00:03:20,160 --> 00:03:25,590
But if we want to put it in a path that we want, we will put it in the path plus the name of the picture.

49
00:03:25,890 --> 00:03:30,320
So in this case, I want to put it in the same folder so I will give it the name, for example.

50
00:03:30,330 --> 00:03:34,620
I mean, then we will make the time that we want.

51
00:03:34,630 --> 00:03:41,430
So we have, for example, we can make it big, easy o give, etc. So I will take it, for example,

52
00:03:41,440 --> 00:03:51,050
being now here, the second parameter before we had here add a r B which is read and binary.

53
00:03:51,060 --> 00:03:58,660
Now we want to write the picture so we want to reconverted from the, the binary to the, the beeping

54
00:03:58,920 --> 00:03:59,460
photo.

55
00:03:59,610 --> 00:04:02,970
So we make here w4 right.

56
00:04:02,970 --> 00:04:04,170
Then be binary.

57
00:04:04,830 --> 00:04:10,250
No here we have as and the name I will give it for example it allows me to have this one.

58
00:04:10,620 --> 00:04:12,160
So here we have big now.

59
00:04:12,580 --> 00:04:21,090
No we will have to save the picture in volleyball so I will give it for example I knew, I just knew

60
00:04:21,810 --> 00:04:25,290
I would just make new big picture.

61
00:04:26,100 --> 00:04:29,070
So this very new picture is at the root of our picture.

62
00:04:29,310 --> 00:04:30,690
No, we will give it here.

63
00:04:30,690 --> 00:04:35,910
The name the the big that we have here, this one, this item.

64
00:04:36,150 --> 00:04:45,780
So we have you pick that right before that we had picked that read because we want to we want we wanted

65
00:04:45,780 --> 00:04:51,540
to read the picture now we want to write it from the binary to the being in this case.

66
00:04:51,810 --> 00:04:54,810
So but we have here in the parameters function, right.

67
00:04:55,110 --> 00:04:59,160
We have to put in the parameters, the picture that we want to write, which is photo.

68
00:04:59,490 --> 00:04:59,770
So.

69
00:05:00,000 --> 00:05:05,200
Invited here, so we have here right the picture, a photo and put it in a new picture.

70
00:05:05,410 --> 00:05:12,250
So this new picture is had the photo, which is being so if we have the program, you will see that

71
00:05:12,460 --> 00:05:16,030
the picture will be saved here, as you can see if we finish this one.

72
00:05:16,130 --> 00:05:21,130
The picture this is our picture, the first picture, which was a picture that we converted to a binary

73
00:05:21,370 --> 00:05:24,760
now from the very type we had returned it to be.

74
00:05:24,920 --> 00:05:30,580
You know, if we want to put it in another tape, for example, GBG, we can do just like this.

75
00:05:30,620 --> 00:05:36,820
You know, if we on another time, you will see that we have the picture in the same picture, but in

76
00:05:37,100 --> 00:05:42,130
the tape, GBG So that was for today.

77
00:05:42,130 --> 00:05:44,140
And I hope that you understand it.

78
00:05:44,670 --> 00:05:48,580
And I see you in the next video and they say my.
