1
00:00:00,690 --> 00:00:05,110
No, we have to start the conversion, but before that we start the conversion.

2
00:00:05,130 --> 00:00:06,420
I want to give you a remark.

3
00:00:06,750 --> 00:00:12,540
So, for example, if we have here this, which is this one, if I press this one, I would choose this

4
00:00:12,540 --> 00:00:13,520
function, this picture.

5
00:00:13,540 --> 00:00:14,840
So we will have this.

6
00:00:14,850 --> 00:00:17,820
But if I would, I want to choose another picture.

7
00:00:18,210 --> 00:00:22,470
If we will click this one and we will choose it, you will see that we have a problem.

8
00:00:22,800 --> 00:00:28,560
So to fix this problem, we have to destroy the first picture which was here.

9
00:00:28,920 --> 00:00:30,870
After that, we put the new picture.

10
00:00:30,880 --> 00:00:34,320
So to do this, we have to there is a function for the frames.

11
00:00:34,710 --> 00:00:37,680
We will use it here like this.

12
00:00:38,110 --> 00:00:42,750
The function is we have for for example, we have items in the frame.

13
00:00:42,930 --> 00:00:46,820
So we have to destroy all the items that we have in this project.

14
00:00:46,830 --> 00:00:52,320
We have just a picture that will be in frame, but we have to make a loop that will destroy everything

15
00:00:52,320 --> 00:00:52,640
we have.

16
00:00:52,860 --> 00:00:54,130
So we have four.

17
00:00:54,420 --> 00:00:56,400
We like it just like these four items.

18
00:00:56,400 --> 00:01:05,790
For example, in in then here we we will find items in frame that frame.

19
00:01:06,120 --> 00:01:08,740
We have the frame in that inf info.

20
00:01:08,820 --> 00:01:10,420
Where is its info.

21
00:01:11,220 --> 00:01:20,910
We saw the windows enfold that those children when we inform the children.

22
00:01:21,900 --> 00:01:29,760
So children means that all the items that we have in the frame, so every item we have in the frame,

23
00:01:29,760 --> 00:01:34,100
which is every children we have in the frame, we will destroy it.

24
00:01:34,110 --> 00:01:35,370
So we will make like this.

25
00:01:35,490 --> 00:01:42,990
So item we make it just items, items, every item in the in the frame.

26
00:01:43,230 --> 00:01:51,690
So item that this toy we will destroy it from, it's so when we press the button it will destroy the

27
00:01:51,690 --> 00:01:52,770
picture that we have.

28
00:01:52,770 --> 00:01:56,130
If we have in the frame after that we will put the new one.

29
00:01:56,160 --> 00:02:02,610
So we will see if it works here, if we click, if we choose, we have this picture now if I want to

30
00:02:02,610 --> 00:02:06,600
choose another one, if I click, you will see that there is no picture for the moment.

31
00:02:06,600 --> 00:02:06,900
No.

32
00:02:06,900 --> 00:02:10,470
If I will click and choose another one, it will be great.

33
00:02:10,500 --> 00:02:11,820
There is no problem for this one.

34
00:02:12,240 --> 00:02:16,770
Now we will start the conversion, look to it to make the conversion.

35
00:02:16,770 --> 00:02:22,530
The idea is I told you about the conversion from the Benghazi use of the binary.

36
00:02:22,800 --> 00:02:23,580
We use this.

37
00:02:23,610 --> 00:02:27,030
Where do we want when we we we were using it as a basis.

38
00:02:27,210 --> 00:02:33,090
So where we want when we want to put the picture to a database, we have to convert it to the binary.

39
00:02:33,120 --> 00:02:36,330
After that, we have to put it in the database.

40
00:02:36,660 --> 00:02:40,350
So we use this idea and put it in the up.

41
00:02:40,590 --> 00:02:42,300
So it will be the first thing that we have to do.

42
00:02:42,300 --> 00:02:45,780
For example, if we have a picture, we will convert it to the binary.

43
00:02:46,170 --> 00:02:50,730
After that, we will convert it from the binary to GBG in this case.

44
00:02:51,150 --> 00:02:55,830
So to do that, the first thing that you have to do, as I told you, we have here this up.

45
00:02:57,000 --> 00:03:01,860
The new the new file or the new picture will be with the name that we put here.

46
00:03:01,870 --> 00:03:06,240
So in case we don't have we don't put a name here, we will have an error.

47
00:03:06,510 --> 00:03:09,540
So we have to verify this from the beginning.

48
00:03:09,720 --> 00:03:17,160
So if this this entry or the name of the picture doesn't equal an empty string in this case, you will

49
00:03:17,160 --> 00:03:18,630
start the condition.

50
00:03:18,840 --> 00:03:24,930
But if there is no no name here, we won't do any any conversion.

51
00:03:24,930 --> 00:03:30,630
And it will be too late for us to hear a message that say, please enter the name, etc..

52
00:03:30,960 --> 00:03:40,410
So to do this, we have just to see if this is if this file name, which is that we define much, which

53
00:03:40,410 --> 00:03:47,790
is here, not only will we have here file name, so if we put fake name that gets we will get the the

54
00:03:48,020 --> 00:03:49,560
the text that we have in the entry.

55
00:03:49,560 --> 00:03:57,180
So if this file name that get doesn't equal the file, the string of empty string, in this case we

56
00:03:57,180 --> 00:04:00,030
will start the conversion as we will do nothing.

57
00:04:00,480 --> 00:04:10,320
So here we have this is the function now we will make this condition if file name that get like this

58
00:04:10,860 --> 00:04:17,820
doesn't equal the wish that if it is equal we start by doing the error.

59
00:04:17,820 --> 00:04:19,110
After that we will do that.

60
00:04:19,380 --> 00:04:28,380
So if the finding that the filename does get the equal the the the empty string in this case, we will

61
00:04:28,380 --> 00:04:30,150
make the error message.

62
00:04:30,450 --> 00:04:34,560
So we will put it in within labor.

63
00:04:34,800 --> 00:04:36,720
So we will make it like this error.

64
00:04:39,210 --> 00:04:47,220
We will call his error equals lable, he will put it in the route, then we will put the message, which

65
00:04:47,220 --> 00:04:50,670
is text text equal.

66
00:04:51,340 --> 00:04:57,870
Here we have enter your file name please.

67
00:04:58,770 --> 00:04:59,850
OK, now.

68
00:05:00,330 --> 00:05:08,070
If we have the if we have enough time, if we forget to put the name of our file in this case, each

69
00:05:08,070 --> 00:05:17,850
will ask us to enter the name every in uppercase, then we will have buckets of that, get what gets

70
00:05:17,850 --> 00:05:18,350
great.

71
00:05:20,190 --> 00:05:23,880
And here we have whoopers in the lottery because we are in the lottery.

72
00:05:24,330 --> 00:05:26,160
So we are in the lottery.

73
00:05:26,160 --> 00:05:30,120
I will see no one to so little country.

74
00:05:30,780 --> 00:05:38,580
Then we put it in the column zero because the first column like this, I will make it just I will make

75
00:05:38,580 --> 00:05:41,760
a spun, for example, on spon.

76
00:05:43,020 --> 00:05:46,860
I will put it in two columns to in the two first columns.

77
00:05:47,280 --> 00:05:49,160
So we will try it here.

78
00:05:49,440 --> 00:05:56,190
For example, if I want to write anything you can see here, this is the text.

79
00:05:56,190 --> 00:05:57,180
I will change the color.

80
00:05:57,180 --> 00:06:01,000
I will make it red, as you know, for don't forget it.

81
00:06:01,020 --> 00:06:05,220
So here we have B.G. four for the foreground.

82
00:06:05,220 --> 00:06:13,200
I will put it red and for the background, I was in the same color of the up, which is this one.

83
00:06:15,650 --> 00:06:16,310
Copy.

84
00:06:17,060 --> 00:06:19,290
And we have here discolor.

85
00:06:19,970 --> 00:06:22,650
So we will see how it looks.

86
00:06:23,150 --> 00:06:24,100
We have this one.

87
00:06:24,110 --> 00:06:28,550
So this is the message until your name, please.

88
00:06:28,940 --> 00:06:35,950
So here I will put somebody on X because we will need it after, but equals 40, 40.

89
00:06:36,410 --> 00:06:39,070
We can see it for the moment, but we need it after this.

90
00:06:39,080 --> 00:06:40,310
I will tell you where.

91
00:06:40,790 --> 00:06:43,440
So here there's nothing that changed.

92
00:06:44,030 --> 00:06:52,750
So here after that, we have we know if this if we forget to take the name of the new find, he will

93
00:06:52,760 --> 00:06:53,110
ask.

94
00:06:53,150 --> 00:06:54,260
He will ask us.

95
00:06:54,260 --> 00:06:59,990
But in this case, we want that he will it will destroy the label.

96
00:06:59,990 --> 00:07:06,530
Because if I didn't enter the name of the fight in this case, I don't want it to open the file and

97
00:07:06,530 --> 00:07:11,990
I don't want it to convert it and say, if it's so good here, we will label, which is the picture

98
00:07:12,020 --> 00:07:13,120
label that destroyed.

99
00:07:13,700 --> 00:07:15,860
So we see it here.

100
00:07:16,310 --> 00:07:21,350
If I will choose this one, you will see that there is no picture because it is not uploaded.

101
00:07:21,990 --> 00:07:27,380
We see that it is uploaded, but he is uploaded, that he destroyed it, destroyed it because we didn't

102
00:07:27,560 --> 00:07:28,520
make the name here.

103
00:07:28,520 --> 00:07:33,950
So we will make we don't want we don't have any convention and we can save it.

104
00:07:34,580 --> 00:07:38,530
So here we have if and we will make it.

105
00:07:38,540 --> 00:07:43,760
As for the moment and in this case, he and we would make our conversion.

106
00:07:43,970 --> 00:07:48,260
So as I told you, the first thing that we have to do is to put it in the in the binary.

107
00:07:48,500 --> 00:07:55,970
After that, we will put it from the binary to the you know, we have the file is in the in the Sony

108
00:07:56,420 --> 00:07:57,080
BMG.

109
00:07:57,080 --> 00:08:06,260
So we will make the function open, which is this one open that not that open here.

110
00:08:06,260 --> 00:08:10,820
We will make the the the parameters that we have here.

111
00:08:10,820 --> 00:08:13,370
We have to put the name of the order.

112
00:08:13,530 --> 00:08:17,330
We have to put the part of the picture that we want to convert here.

113
00:08:17,390 --> 00:08:20,350
As we know, we have the this name, which is that file.

114
00:08:20,360 --> 00:08:26,630
This is the path that we have chosen after after clicking on the picture of after choosing the picture

115
00:08:26,630 --> 00:08:27,200
that we want.

116
00:08:27,470 --> 00:08:28,550
So we will put it here.

117
00:08:29,300 --> 00:08:34,430
As you can see, we have four in in the first condition that we have here.

118
00:08:34,430 --> 00:08:37,350
If this if what is it?

119
00:08:37,480 --> 00:08:38,080
If.

120
00:08:38,080 --> 00:08:38,390
If.

121
00:08:41,250 --> 00:08:48,630
Here we have not this one, we want to put all this inside.

122
00:08:51,060 --> 00:09:00,870
If we had if the that fine name doesn't equal to the empty, yes, we have to hear if this is the route,

123
00:09:01,150 --> 00:09:07,200
if the route that filename, which is the path, it is different to the empty string.

124
00:09:07,200 --> 00:09:12,630
In this case, we will do the conversion as we don't have to do the condition because there is no path.

125
00:09:13,050 --> 00:09:15,540
So I forget to push it down now like this.

126
00:09:15,750 --> 00:09:22,940
If the road that frame doesn't equal to the empty string here, we will do the the the conversion.

127
00:09:22,950 --> 00:09:31,110
So we have here to open it now here the second parameter, which is read binary because we have to read

128
00:09:31,620 --> 00:09:37,200
the first thing that we have to do is to read the picture and put it in the binary and you make as big,

129
00:09:37,200 --> 00:09:37,770
for example.

130
00:09:37,770 --> 00:09:38,460
It doesn't matter.

131
00:09:38,820 --> 00:09:42,450
So here we have the new picture, which is in binary.

132
00:09:42,450 --> 00:09:52,800
So binary big equals to be sure that read this one, know this very well, which is binary.

133
00:09:52,800 --> 00:09:56,340
Big has the value of the picture in the binary type.

134
00:09:56,730 --> 00:09:59,970
Now after that we have converted it in the binary.

135
00:09:59,970 --> 00:10:00,980
No one will read.

136
00:10:01,680 --> 00:10:05,850
We will, we will make it in another time in a picture.

137
00:10:05,850 --> 00:10:06,950
But with the being.

138
00:10:07,230 --> 00:10:10,880
So he had the PNG type will we will make it you.

139
00:10:11,090 --> 00:10:14,920
But the name which was the name which is written here.

140
00:10:15,240 --> 00:10:18,960
So the name that's which is written here is named for the get.

141
00:10:19,230 --> 00:10:24,870
So here we will make we've opened the same thing that we have to do here.

142
00:10:24,870 --> 00:10:35,430
We will make the the name here, the first thing here like this, which is fine name that gets plus

143
00:10:36,360 --> 00:10:43,920
what we have, plus the being that the GBG sorry DPG because we want the, the, we want the extension

144
00:10:43,920 --> 00:10:49,830
of the this for this picture being said, we will be, we will have here the name that we have written

145
00:10:49,980 --> 00:10:57,420
in this country that B and so we will put it all in the spring and put it as a parameter, as a first

146
00:10:57,420 --> 00:10:58,510
parameter of this function.

147
00:10:58,990 --> 00:11:06,240
Now here we have the second parameter, which is write binary from the binary, will write it and make

148
00:11:06,240 --> 00:11:06,940
it as a picture.

149
00:11:07,260 --> 00:11:09,690
Here we have something as big.

150
00:11:10,260 --> 00:11:11,810
I will make it just big.

151
00:11:12,040 --> 00:11:13,620
I think that it doesn't work.

152
00:11:13,890 --> 00:11:15,990
I would make it just just a peek.

153
00:11:15,990 --> 00:11:18,030
And here we have this one here.

154
00:11:18,030 --> 00:11:23,940
What we have new I want this new picture doesn't have a problem to don't have a problem with the first

155
00:11:23,940 --> 00:11:24,140
one.

156
00:11:24,330 --> 00:11:26,640
So we have here the new big hand here.

157
00:11:26,640 --> 00:11:37,110
We will make this the new picture, which will be a big picture equals two new big but right.

158
00:11:38,490 --> 00:11:44,660
And here we will make the the name of the picture that we have in the binary, which is this one called

159
00:11:44,700 --> 00:11:46,820
Alsi, and we will make it like this.

160
00:11:47,130 --> 00:11:53,670
So in this case, we will take the picture from the binary type and put it in.

161
00:11:54,090 --> 00:12:01,520
We will take the picture for from this file and we will convert it to the binary after that will convert

162
00:12:01,530 --> 00:12:03,700
it and put it in the GBG.

163
00:12:04,350 --> 00:12:10,200
So here it was in the PJI and here in binary and at the at the end here in the GBG.

164
00:12:10,620 --> 00:12:12,000
After that, we will make a message.

165
00:12:12,000 --> 00:12:13,710
For example, your picture is saved.

166
00:12:14,220 --> 00:12:20,600
So we will make a label called Save here we have label and put it into words.

167
00:12:21,780 --> 00:12:23,850
Then we have the same thing here.

168
00:12:24,120 --> 00:12:37,370
I will just copy this one control and see like this controversy that not just this one.

169
00:12:38,550 --> 00:12:40,080
Yes, this one controversy.

170
00:12:41,940 --> 00:12:47,040
I read this and here we will write the text.

171
00:12:47,250 --> 00:12:55,020
For example, your picture is saved.

172
00:12:56,340 --> 00:13:02,410
Six is fully now will change the color because we don't want it like this.

173
00:13:02,410 --> 00:13:12,970
So I will put it, for example, I don't know why it's like this and this, the background and the background.

174
00:13:13,140 --> 00:13:14,400
I will let it just like this.

175
00:13:14,700 --> 00:13:16,570
So we will see if it's work here.

176
00:13:16,680 --> 00:13:26,340
We will we will make this name, for example, name or new name, a new name, and we can choose the

177
00:13:26,340 --> 00:13:26,730
picture.

178
00:13:27,030 --> 00:13:28,740
So we have this picture, for example.

179
00:13:28,950 --> 00:13:33,840
We have opened it here and there is no message saying because I didn't like it.

180
00:13:33,840 --> 00:13:38,970
So I would like it if the picture here we have this one.

181
00:13:39,330 --> 00:13:41,010
So save that.

182
00:13:41,400 --> 00:13:41,910
Great.

183
00:13:42,540 --> 00:13:44,280
I always forget to forget.

184
00:13:44,280 --> 00:13:45,210
I don't know why.

185
00:13:45,780 --> 00:13:47,940
I will just take it from here.

186
00:13:49,470 --> 00:13:50,280
This one.

187
00:13:50,570 --> 00:13:52,940
Control C and control.

188
00:13:53,700 --> 00:14:02,810
Know, we'll see if it work here, we have to take the name, as I told you folks by name, name big,

189
00:14:03,020 --> 00:14:06,710
not like just this, which was dysfunction, this picture.

190
00:14:07,270 --> 00:14:11,250
So as you can see here, your picture is saved successfully.

191
00:14:11,480 --> 00:14:12,920
We will see if it work.

192
00:14:12,920 --> 00:14:19,100
If we have name picture, we see we have name big here in GBG.

193
00:14:19,100 --> 00:14:23,670
This is the picture that we have converted, as you can see it work for the DPG.

194
00:14:24,260 --> 00:14:30,260
Now, we will stop here converting the picture from the pages of GBG and the next time we do it from

195
00:14:30,260 --> 00:14:31,220
the GBG to the.
