Nancy Den has Published 335 Articles

How to insert an image in to MySQL database using Java program?

Nancy Den

Nancy Den

Updated on 31-Oct-2023 04:08:56

21K+ Views

To hold an image in MySQL database generally blob type is used. Therefore, make sure that you have a table created with a blob datatype with the following description:+-------+--------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +-------+--------------+------+-----+---------+-------+ | Name | varchar(255) | YES | ... Read More

How to draw a star by using canvas HTML5?

Nancy Den

Nancy Den

Updated on 16-Dec-2021 09:52:08

5K+ Views

Drawing on the HTML canvas is to be done with JavaScript. Use the HTML DOM Method getElementById() and getContext() before drawing on the canvas. To draw a star in HTML, use the canvas element.With canvas, use the lineTo() method to draw a star. The lineTo() method includes x and y ... Read More

Define the width of each column in CSS Grid Layout

Nancy Den

Nancy Den

Updated on 04-Jul-2020 06:38:28

382 Views

To set the width of each column in Grid Layout, use the grid-template-columns property.ExampleYou can try to run the following code to implement it −Live Demo                    .container {             display: grid;       ... Read More

CSS grid-template-rows property

Nancy Den

Nancy Den

Updated on 03-Jul-2020 10:20:26

80 Views

The grid-template-rows property is used to set the number of rows in the Grid.ExampleYou can try to run the following code to implement the grid-template-rows property −Live Demo                    .container {             display: grid;   ... Read More

Add rounded borders to first and last link in the pagination using CSS

Nancy Den

Nancy Den

Updated on 03-Jul-2020 08:03:19

352 Views

To add rounded borders, use the border-radius property. For top/ bottom left, use the border-top-left-radius property and for bottom, use border-bottom-left-radius. In the same way, set for top/bottom right.ExampleYou can try to run the following code to add rounded borders to first and last link in the pagination −Live Demo ... Read More

Role of CSS justify-content property flex-end value

Nancy Den

Nancy Den

Updated on 03-Jul-2020 07:51:35

80 Views

Use the justify-content property with value flex-end to align the flex-items at the end.ExampleYou can try to run the following code to implement the flex-end value −Live Demo                    .mycontainer {             display: flex;       ... Read More

Role of CSS flex-wrap property wrap value

Nancy Den

Nancy Den

Updated on 03-Jul-2020 07:43:07

60 Views

Use the flex-wrap property with wrap value to wrap flex-items.ExampleYou can try to run the following code to implement the wrap value −Live Demo                    .mycontainer {             display: flex;             background-color: ... Read More

Arrow to the bottom of the tooltip with CSS

Nancy Den

Nancy Den

Updated on 01-Jul-2020 11:04:34

618 Views

Use the top CSS property to add arrow to the bottom of the tooltip.ExampleYou can try to run the following code to add a tooltip with arrow to the bottom:Live Demo           .mytooltip .mytext {          visibility: hidden;          width: ... Read More

Rotate In Down Left Animation Effect with CSS

Nancy Den

Nancy Den

Updated on 29-Jun-2020 07:11:44

107 Views

To create a rotate in down animation effect with CSS, you can try to run the following code −ExampleLive Demo                    .animated {             background-image: url(/css/images/logo.png);             background-repeat: no-repeat;     ... Read More

Get Canonical Name for a class in Java

Nancy Den

Nancy Den

Updated on 29-Jun-2020 06:44:18

288 Views

The canonical name of a class can be obtained using the java.lang.Class.getCanonicalName() method. This method returns the canonical name of the underlying class and returns null if there is no canonical name for the underlying class.A program that demonstrates the getCanonicalName() method to obtain the canonical name is given as ... Read More

1 2 3 4 5 ... 34 Next
Advertisements